package CLIENT;


/**
 *
 * @author win
 */
import java.io.*;
/**
 * This class represents a message that sends in the Talk2Me program
 * it contains a string message , source and dest for the message and a boolean declares if it's a system message or a chat message
 * @author Yaniv Kalif
 */
public class Message implements Serializable
{
   private String _msg;
   private String _src = null;
   private String _dst = null; 
   private boolean _isSystemMessage; 

   public Message(String msg,String src)//, boolean isSystemMessage)
   {
      _msg=msg;
      _src=src;
      //_isSystemMessage=isSystemMessage;
   }
    public String GetString(){return _msg;}  
    public void SetClientsrc(String src){_src = src;} 
    public void SetClientdst(String dst){_dst = dst;}  
    public String GetClientsrc(){return _src;}  
    public String GetClientdst(){return _dst;}
    public void SetisSystemMessage(boolean bool){ _isSystemMessage = bool;}
    public boolean GetisSystemMessage(){return _isSystemMessage;} 

}